//
//  NSString+HQCategory.h
//  PerfectLifeTwo
//
//  Created by 黄华强 on 2018/2/23.
//  Copyright © 2018年 PerfectLife. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface NSString (HQCategory)

//获取string文字所占大小
+ (CGSize)getStringSize:(NSString *)string maxSize:(CGSize)maxSize font:(UIFont *)font;

+ (NSDecimalNumber *)reviseStringToNumber:(NSString *)string;
+ (NSString *)reviseStringToString:(NSString *)string;
+ (CGFloat)reviseStringToFloat:(NSString *)string;

//时间帽转换为NSString显示
+ (NSString *)timeStampToDateString:(NSString *)timeStamp formatterStr:(NSString *)formatterStr;

//NSDate转换为NSString显示。 formatterStrq为格式  如yyyy-MM-dd hh:mm:ss
+ (NSString *)dateToDateString:(NSDate *)date formatterStr:(NSString *)formatterStr;

//根据省份证号获取年龄
+ (NSString *)getIdentityCardAge:(NSString *)numberStr;

@end
